#!/bin/bash
source experiment.cfg
if [ "$1" == "c" ]
then
	ssh -i compagg-kp.pem ec2-user@$(sed -n "1{p;q}" $controller_dns_file) 'cat *.log'
else
	ssh -i compagg-kp.pem ec2-user@$(sed -n "$1{p;q}" $node_dns_file) 'cat *.log'
fi
